LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
WriteTransformMarker(Int32,Byte[],Int32,Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > WriteTransformMarker Method : WriteTransformMarker(Int32,Byte[],Int32,Int32) Method



id
The id of the metadata marker.
data
A byte array containing the data for the metadata marker.
dataOffset
Offset into data into which to beging the read operation.
dataLength
Number of bytes to read from data.
id
The id of the metadata marker.
data
A byte array containing the data for the metadata marker.
dataOffset
Offset into data into which to beging the read operation.
dataLength
Number of bytes to read from data.
Controls how the transform markers are used when performing a lossless transformation for certain formats.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub WriteTransformMarker( _
   ByVal id As Integer, _
   ByVal data() As Byte, _
   ByVal dataOffset As Integer, _
   ByVal dataLength As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim id As Integer
Dim data() As Byte
Dim dataOffset As Integer
Dim dataLength As Integer
 
instance.WriteTransformMarker(id, data, dataOffset, dataLength)
C# 
public void WriteTransformMarker( 
   int id,
   byte[] data,
   int dataOffset,
   int dataLength
)
C++/CLI 
public:
void WriteTransformMarker( 
   int id,
   array<byte>^ data,
   int dataOffset,
   int dataLength
) 

Parameters

id
The id of the metadata marker.
data
A byte array containing the data for the metadata marker.
dataOffset
Offset into data into which to beging the read operation.
dataLength
Number of bytes to read from data.

Example

For an example, refer to Transform.

Remarks

You should use this method to write a certain marker data into the file.

This method can be called only from within the CodecsTransformMarkerCallback passed to the Transform method.

The transform mechanism is as follows:

Note: You can also use WriteTransformMarker(Int32,Byte[],Int32,Int32) to insert your own markers. The marker will be inserted before the current marker. You can call WriteTransformMarker(Int32,Byte[],Int32,Int32) as many times as you wish. Every call to WriteTransformMarker(Int32,Byte[],Int32,Int32) will insert a new marker.

Warning: Incorrect handling of the markers will generate corrupt files! Since some markers contain important information about the image (image width, height, compression method, colorspace, etc), you should use caution when working with markers.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also